package com.wonder.app.service;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wonder.admin.domain.SysAdmin;
import com.wonder.app.domain.SfcProplan;
import com.wonder.app.request.SfcProplanRequest;
import com.wonder.common.common.AjaxResult;

import java.util.List;
import java.util.Map;

public interface SfcProplanService extends IService<SfcProplan> {
   public IPage<SfcProplan> selectList(SfcProplanRequest request, Page<SfcProplan> page);

   /**
    * 工序计划单审核
    * @param map
    * @return
    * @throws Exception
    */
   boolean audit(JSONObject map) throws Exception;
   /**
    * 详情SfcProPlan
    * @param map
    * @return
    */
   Map<String, Object> getSfcProPlanDetail(Map<String, Object> map);
   /**
    * 获取工序计划单数据
    * @param billno
    * @return
    */
   Map<String,Object> getRroPlan(String billno);

   Map<String, Object> getPlanlist(SysAdmin user,Map<String, Object> map);

   Map<String, Object> getPlanDetail(Map<String, Object> map,Long user_id);

   Map<String, Object> getPlanisDetail(Map<String, Object> map);

   Map<String, Object> getPlanDetailFeed(Map<String, Object> map, Long user_id) throws Exception;

   Map<String, Object> getPlanDetailMold(Map<String, Object> map, Long user_id) throws Exception;


   Map<String, Object> getPlanDetailMoldReturn(Map<String, Object> map, Long user_id)throws Exception;

   Map<String, Object> getPlanlistMoldStatus(Map<String, Object> map) throws Exception;

   Map<String, Object> getOperNoByTray(Long user_id, Map<String, Object> map)throws Exception;

   Map<String, Object> getOperNoByTrayInStock(Long user_id, Map<String, Object> map)throws Exception;

}